//
// Created by wujehy on 2020/8/3.
//

#ifndef AUTH_RAFT_TCPSERVER_H
#define AUTH_RAFT_TCPSERVER_H

#include "../baseType.h"
#include "NetWorkBase.h"

class TCPServer : public NetWorkBase
{
//    friend class ;
    handy::TcpServerPtr m_serverPtr;
    std::string serverIp = "";
    int server_port = 12345;
public:
    void init() override;

    void deinit() override;

    virtual ~TCPServer();

    void setServerIp(const std::string &serverIp);

    void setServerPort(int serverPort);

};


#endif //AUTH_RAFT_TCPSERVER_H
